<template>
  <div class="dynamic-list">
    <div class="dynamic-list-item" v-for="item in 9">
      <div class="msg-box">
        <div class="avatar">
          <img src="../assets/avatar.jpg" alt="" />
        </div>
        <div class="title p-10-15">
          <div class="nickname">龙井</div>
          <div class="publish-time">一周前</div>
        </div>
        <div class="content p-10-15">这是一段文字内容，唔嗯。</div>
        <div class="function-area p-10-15">
          <el-button type="primary" size="mini">评论</el-button>
          <el-button type="primary" size="mini">评论</el-button>
          <el-button type="primary" size="mini">评论</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.p-10-15 {
  padding: 10px 15px;
}
.dynamic-list {
  min-height: 100%;
  border-left: 1px solid #dee5e7;
  margin: 0 0 0 20px;

  .dynamic-list-item {
    padding: 15px;
    &:first-child {
      padding: 0 15px;
    }
    .msg-box {
      position: relative;
      background: white;
      max-height: 400px;
      min-width: 100%;
      margin: 0 20px;
      &::after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        top: 5px;
        left: -5px;
        // box-shadow: -1px -1px 1px rgb(0 0 0);
        transform: rotate(-45deg);
        background-color: white;
      }
      .avatar {
        width: 40px;
        height: 40px;
        position: absolute;
        left: 0;
        top: 0;
        margin-left: -55px;
        img {
          width: 100%;
          height: 100%;
          border-radius: 25%;
        }
      }
      .title {
        display: flex;
        justify-content: space-between;
      }
      .content {
      }
    }
  }
}
</style>
